*
* Purpose: generate university id
*

gen university = ""
replace university = "AVF" if substr(faculty, 1, 3) == "AVF"
replace university = "AVKF" if substr(faculty, 1, 3) == "AVK"
replace university = "BCE" if substr(faculty, 1, 3) == "BCE"
replace university = "BGF" if substr(faculty, 1, 3) == "BGF"
replace university = "BKF" if substr(faculty, 1, 3) == "BKF"
replace university = "BKTF" if substr(faculty, 1, 4) == "BKTF"
replace university = "BME" if substr(faculty, 1, 3) == "BME"
replace university = "BMF" if substr(faculty, 1, 3) == "BMF"
replace university = "DE" if substr(faculty, 1, 2) == "DE"
replace university = "DF" if substr(faculty, 1, 2) == "DF"
replace university = "EJF" if substr(faculty, 1, 3) == "EJF"
replace university = "EKF" if substr(faculty, 1, 3) == "EKF"
replace university = "ELTE" if substr(faculty, 1, 4) == "ELTE"
replace university = "GDF" if substr(faculty, 1, 3) == "GDF"
replace university = "HFF" if substr(faculty, 1, 3) == "HFF"
replace university = "HJF" if substr(faculty, 1, 3) == "HJF"
replace university = "IBS" if substr(faculty, 1, 3) == "IBS"
replace university = "KE" if substr(faculty, 1, 2) == "KE"
replace university = "KF" if substr(faculty, 1, 2) == "KF"
replace university = "KJF" if substr(faculty, 1, 3) == "KJF"
replace university = "KRE" if substr(faculty, 1, 3) == "KRE"
replace university = "KRF" if substr(faculty, 1, 3) == "KRF"
replace university = "KT" if substr(faculty, 1, 2) == "KT"
replace university = "LFZE" if substr(faculty, 1, 2) == "LF"
replace university = "ME" if substr(faculty, 1, 2) == "ME"
replace university = "MKE" if substr(faculty, 1, 3) == "MKE"
replace university = "MOME" if substr(faculty, 1, 3) == "MOM"
replace university = "MPANNI" if substr(faculty, 1, 3) == "MPA"
replace university = "MTF" if substr(faculty, 1, 3) == "MTF"
replace university = "MU" if substr(faculty, 1, 3) == "MUT"
replace university = "NYF" if substr(faculty, 1, 3) == "NYF"
replace university = "NYME" if substr(faculty, 1, 4) == "NYME"
replace university = "PE" if substr(faculty, 1, 2) == "PE"
replace university = "PPKE" if substr(faculty, 1, 3) == "PPK"
replace university = "PTE" if substr(faculty, 1, 3) == "PTE"
replace university = "RTF" if substr(faculty, 1, 3) == "RTF"
replace university = "SE" if substr(faculty, 1, 2) == "SE"
replace university = "SZE" if substr(faculty, 1, 3) == "SZE"
replace university = "SZF" if substr(faculty, 1, 3) == "SZF"
replace university = "SZIE" if substr(faculty, 1, 4) == "SZIE"
replace university = "SZTE" if substr(faculty, 1, 4) == "SZTE"
replace university = "TPF" if substr(faculty, 1, 3) == "TPF"
replace university = "TSF" if substr(faculty, 1, 3) == "TSF"
replace university = "VHF" if substr(faculty, 1, 3) == "VHF"
replace university = "VTI" if substr(faculty, 1, 3) == "VTI"
replace university = "WJL" if substr(faculty, 1, 3) == "WJL"
replace university = "ZMNE" if substr(faculty, 1, 3) == "ZMN"
replace university = "ZSKF" if substr(faculty, 1, 3) == "ZSK"

label variable university "University"
